package models

import "github.com/pquerna/ffjson/ffjson"

type BookModel struct {
	BookId int
	BookName string
	BookPress string
}

func (book BookModel) ToJSON() string{
	result,err:=ffjson.Marshal(book)
	if err != nil{
		return err.Error()
	}else{
		return string(result)
	}
}
